from usr.libs.common import Database


# 默认用户配置文件路径
DEFAULT_CONFIG_PATH = '/usr/default.json'


class Settings(Database):
    """配置类"""

    # 主控版本
    VERSION = "1.0.0"

    COZE_CHAT_URL = "wss://ws.coze.cn/v1/chat"
    COZE_BOT_ID = "73791654286875"
    COZE_ACCESS_TOKEN = "pat_GuIDTySHUtROcxjGjwy6YuvHa9pshsHsRN2oJaXHKMI7L2ZhkHe5YL1u026Fa1s3"

    @classmethod
    def get_version(cls):
        return cls.VERSION


# 全局配置对象
settings = Settings(DEFAULT_CONFIG_PATH)
